/*****************************************************************************
 * hal_linux_can.c
 *
 * Copyright (C) 2020 Jeasonvor 1101627719@qq.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 ****************************************************************************/

/*****************************************************************************
 * Included Files
 ****************************************************************************/
#include "plum_api.h"
#include "hal/source/hal_linux/hal_linux.h"
/*****************************************************************************
 * Trace Definitions
 ****************************************************************************/

/*****************************************************************************
 * Pre-processor Definitions
 ****************************************************************************/

/*****************************************************************************
 * Private Types
 ****************************************************************************/

/*****************************************************************************
 * Private Function Prototypes
 ****************************************************************************/

/*****************************************************************************
 * Private Data
 ****************************************************************************/

/*****************************************************************************
 * Public Data
 ****************************************************************************/

/*****************************************************************************
 * Private Functions
 ****************************************************************************/

/*****************************************************************************
 * Public Functions
 ****************************************************************************/

PLUM_PUBLIC
plum_s32 plum_hal_can_init(plum_u32 id, plum_hal_can_cof_t *cof)
{
    PLUM_UNUSED(id);
    PLUM_UNUSED(cof);

    return (PLUM_ECODE_OK);
}

PLUM_PUBLIC
plum_s32 plum_hal_can_send(plum_u32 id, plum_u8 *wData, plum_u32 cnt)
{
    PLUM_UNUSED(id);
    PLUM_UNUSED(wData);
    PLUM_UNUSED(cnt);

    return (PLUM_ECODE_OK);
}

PLUM_PUBLIC
plum_s32 plum_hal_can_recv(plum_u32 id, plum_u8 *rData, plum_u32 cnt,
                           plum_u32 timeout)
{
    PLUM_UNUSED(id);
    PLUM_UNUSED(rData);
    PLUM_UNUSED(cnt);
    PLUM_UNUSED(timeout);

    return (PLUM_ECODE_OK);
}

/****************************************************************************/
/*                                                                          */
/*  End of file.                                                            */
/*                                                                          */
/****************************************************************************/
